package crazy.trap;

public class MutableString
{
	public static void main(String[] args)
	{
		StringBuilder str = new StringBuilder("Hello ");
		System.out.println(str.capacity());
		System.out.println(str.length());
		System.out.println(System.identityHashCode(str));
		
		str.append("Java");
		System.out.println(str);
		System.out.println(System.identityHashCode(str));
		System.out.println(str.capacity());
		System.out.println(str.length());
		
		
	}
}
